From bde6c5740ea7c896dc0cfd2495bdc8ba143cef54 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 7 Feb 2019 15:24:06 +0000 Subject: [PATCH] xen version/upgrade handling: Improve an error message When xen-dir cannot find xen-utils, mention that this might be because xen-utils- was already removed. This is generally helpful, but it does not solve the `missing xenconsoled' problems because 1. it only changes messages and 2. actually in the init script, the error message is currently discarded anyway (!) But, anyway, it is an improvemennt. Signed-off-by: Ian Jackson Acked-by: Hans van Kranenburg --- debian/scripts/xen-dir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/scripts/xen-dir b/debian/scripts/xen-dir index 32b5776cf3..48fe4043e1 100755 --- a/debian/scripts/xen-dir +++ b/debian/scripts/xen-dir @@ -5,6 +5,6 @@ VERSION=$(. /usr/lib/xen-common/bin/xen-version); RET=$?; [ $RET -eq 0 ] || exit if [ -d "/usr/lib/xen-$VERSION" ]; then echo "/usr/lib/xen-$VERSION" else - echo "ERROR: Can't find version $VERSION of xen utils, bailing out!" >&2 + echo "ERROR: Can't find version $VERSION of xen utils (maybe xen-utils-$VERSION was already removed before rebooting out of Xen $VERSION), bailing out!" >&2 exit 127 fi -- 2.30.2